#include "components_cpp/node1.hpp"


Node1::Node1(): Node("node1")
{           
    timer1_ = this->create_timer(1.0s, std::bind(&Node1::callbacktimer1_, this));
    timer2_ = this->create_timer(1.0s, std::bind(&Node1::callbacktimer2_, this));
    timer3_ = this->create_timer(1.0s, std::bind(&Node1::callbacktimer3_, this));
}


void Node1::callbacktimer1_()
{
    std::this_thread::sleep_for(2.0s);
    RCLCPP_INFO(this->get_logger(), "cb 1");
}

void Node1::callbacktimer2_()
{
    std::this_thread::sleep_for(2.0s);
    RCLCPP_INFO(this->get_logger(), "cb 2");
}

void Node1::callbacktimer3_()
{
    std::this_thread::sleep_for(2.0s);
    RCLCPP_INFO(this->get_logger(), "cb 3");
}
